#include <iostream>

using namespace std;

int main()
{
    int n;
    while(cin>>n)
    {
        n%=8;
        if(n==2||n==6)
        cout<<"yes"<<endl;
        else
        cout<<"no"<<endl;
    }
    return 0;
}
